<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no" />
    <meta name="format-detection" content="email=no" />
    <title>我的</title>
    <link rel="stylesheet" href="../../css/api.css">
    <link rel="stylesheet" href="../../css/vant.css">
    <link rel="stylesheet" href="../../css/main.css">
    <style>
    </style>
</head>

<body>
    <div class="app header-style" v-cloak>
        <header style="padding-top: .45rem;">
            <div class="flex-x-sb">
                <span class="iconfont goback" @click="back">&#xe66f;</span>
                <div class="title">
                    {{title}}
                </div>
            </div>
        </header>
    </div>
    <script src="../../script/api.js "></script>
    <script src="../../script/flexible.js "></script>
    <script src="../../script/fastclick.js "></script>
    <script src="../../script/vue.min.js "></script>
    <script src="../../script/iconfont.js "></script>
    <script src="../../script/vant.min.js "></script>
    <script src="../../script/common.js "></script>
    <script src="../../script/restful.js "></script>
    <script src="../../script/businessCommon.js "></script>

    <script>
        apiready = function() {
            vm = new Vue({
                el: '.app',
                data: {
                    title: api.pageParam.title,
                    contentType: api.pageParam.contentType,
                },
                created() {
                },
                mounted() {
                    var header = $api.dom('header');
                    var headerH = $api.fixStatusBar(header);
                    mime("getStaticList")(function(ret) {
                        var content = ret.data.find((value, index) => {return value.type == vm.contentType})
                        api.openFrame({
                            name: 'common_frm',
                            url: content.url,
                            rect: {
                                marginTop: headerH,
                                marginBottom: 0,
                                w: 'auto'
                            },
                            allowEdit: true,
                        });
                    })

                },
                methods: {
                    back() {
                        api.closeWin();
                    }
                },
            })
        }
    </script>
</body>

</html>